package spec.dengyuru.ball2;

public class Ball2 {
    //成员变量
    String xm;
    String r;
    String cz;
    String zl;
    String shrq;
    final static String tianchong = "空气";
    static String shape = "圆";
    public String zwjs() {
        return "我是" + xm + "," + "我的直径是" + r + "," + "我的材质是" + cz + "," + "我的重量是" + zl + "," + "我适合" + shrq;
    }

    //构造方法
    public Ball2(String xm, String r, String cz, String zl, String shrq) {
        this.xm = xm;
        this.r = r;
        this.cz = cz;
        this.zl = zl;
        this.shrq = shrq;
    }
    public Ball2() {
    }

    public String play() {
        return "每天打球";
    }
}

